<?php
class  Searchorders extends Controller
{
	function Searchorders()
	{
		parent::Controller();
		  ////////////////////////////
		//CHECKING FOR PERMISSIONS
		///////////////////////////
		//-------------------------------------------------
        //only 'admin' and 'superadmin' can manage users
        
        $this->freakauth_light->check();
        
        //-------------------------------------------------
        //END CHECKING FOR PERMISSION
        
       // $this->_container = $this->config->item('FAL_template_dir').'template_admin/container';
        //$this->load->model('orders_model');
        $this->load->model('orders_model');
        $this->_container = $this->config->item('CNC_template_dir').'template/container';
		$this->load->library('CNC_frontend', 'cnc_frontend');
		$this->load->library('CNC_services', 'cnc_services');
         $this->load->model('selectorders');
	}
	function index()
	{
		$services = $this->input->post('date');
		
	}
function selectorders()
    { 
    	
    	$data['sideheading'] = 'My Orders';
        $data['sidebar'] = $this->cnc_frontend->get_active_sidebar();
		$data['fal'] = $this->cnc_services->selectorders();
		$this->load->view($this->_container,$data);
	    
    }
}
?>